package securelogin.action;
import java.io.*;
public class RegisterationDataManipulation{
	
	
	public RegisterationDataManipulation(){
		
	}

	private boolean storeData(String username, String email, String password, String confirmpass, long contactnumber)
	{
		try{
			if(password.equal(confirmpass)){    				
			  FileWriter fstream = new FileWriter("/home/elitecore/Rajan_5309/JSP, Servlet and tomcat/securelogin/src/org/utils/Data");
			  BufferedWriter out = new BufferedWriter(fstream);
			  out.append("" + username + " \n" + email + " \n" + password + " \n" + contactnumber + "\n");
			  out.close();
			  return true;
			}
			else{
			  return false;
			}
		  }catch (Exception e){
			  System.err.println("Error in registeration file writing: " + e.getMessage());
		  }
  
	}
}
